---
layout: "default"
title: "LazyPrefixWhileIndex"
description: "Swift documentation for 'LazyPrefixWhileIndex': A position in a LazyPrefixWhileCollection or."
keywords: "LazyPrefixWhileIndex,struct,swift,documentation"
root: "/v3.1"
---

<div class="intro-declaration"><code class="language-swift">struct LazyPrefixWhileIndex&lt;Base where Base : Collection&gt;</code></div>

<div class="discussion comment">
    <p>A position in a <code>LazyPrefixWhileCollection</code> or
<code>LazyPrefixWhileBidirectionalCollection</code> instance.</p>
</div>

<table class="standard">
<tr>
<th id="inheritance">Inheritance</th>
<td>
<code class="inherits">Comparable, Equatable</code>
<span class="viz"><a href="hierarchy/">View Protocol Hierarchy &rarr;</a></span>
</td>
</tr>



<tr>
<th>Import</th>
<td><code class="language-swift">import Swift</code></td>
</tr>

</table>









